#ifndef HEARTBEATDETECTIONRESPONSE_H
#define HEARTBEATDETECTIONRESPONSE_H

#include "BaseResponse.h"

class HeartbeatDetectionResponse : public BaseResponse
{
public:
    HeartbeatDetectionResponse();
    HeartbeatDetectionResponse(QString factoryNo,QString transId,QDateTime eventTime,QString resultCode,QString resultMsg);
    // BaseResponse interface
    bool fromJson(const QByteArray &jsonData) override;
    bool isSuccess() const override{return success;}
    QString getError() const override{return resultMsg;}

public:
    QString factoryNo;
    QString transId;
    QDateTime eventTime;
    QString resultCode;
    QString resultMsg;
private:
    bool success;
};

#endif // HEARTBEATDETECTIONRESPONSE_H
